<!--
 * @Author: byron
 * @Date: 2021-09-23 20:24:19
 * @LastEditTime: 2021-09-29 17:02:02
-->
<template>
    <div class="pagination" v-if="total > pageSize">
        <el-pagination
            :pageSize="pageSize"
            :total="total"
            layout="prev, pager, next"
            v-bind="$attrs"
            v-on="$listeners"
        >
        </el-pagination>
    </div>
</template>

<script type="text/ecmascript-6">
export default {
  props: ['pageSize', 'total'],
  name: 'Pagination',
}
</script>

<style lang="scss" scoped>
.pagination {
    text-align: right;
}
</style>
